package com.chenxin.interact.domain.mesToWms;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.chenxin.common.annotation.Excel;
import com.chenxin.common.core.domain.WmsBaseEntity;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.math.BigDecimal;

/**
 * mes发料接口对象 mes_to_wms_order
 *
 * @author gry
 * @date 2025-04-25
 */
@EqualsAndHashCode(callSuper = true)
@TableName("mes_to_wms_order")
@Data
public class MesToWmsOrder extends WmsBaseEntity {
    private static final long serialVersionUID = 1L;

    /**
     * 主键
     */
    @TableId(type = IdType.AUTO)
    private Long id;

    /**
     * 备料单号
     */
    @Excel(name = "备料单号")
    private String stockNo;

    /**
     * 工单号
     */
    @Excel(name = "工单号")
    private String workOrderNo;

    /**
     * 车间编码
     */
    @Excel(name = "车间编码")
    private String workShopCode;

    /**
     * 产线编码
     */
    @Excel(name = "产线编码")
    private String resourceCode;

    /**
     * 类型
     */
    @Excel(name = "类型")
    private String stockType;

    /**
     * MES创建人
     */
    @Excel(name = "MES创建人")
    private String mesCreateBy;

    /**
     * MES创建时间
     */
    @Excel(name = "MES创建时间")
    private String mesCreateDate;

    /**
     * 申请部门
     */
    @Excel(name = "申请部门")
    private String applicationDept;

    /**
     * 行号
     */
    @Excel(name = "行号")
    private Long line;

    /**
     * 物料编号
     */
    @Excel(name = "物料编号")
    private String itemCode;

    /**
     * 需求数
     */
    @Excel(name = "需求数")
    private BigDecimal stanceDemandQty;

    /**
     * 单次用量
     */
    @Excel(name = "单次用量")
    private BigDecimal singleQty;

    /**
     * 设备编码
     */
    @Excel(name = "设备编码")
    private String equipAccountId;

    /**
     * 分区
     */
    @Excel(name = "分区")
    private String subarea;

    /**
     * 占位
     */
    @Excel(name = "占位")
    private String stance;

    /**
     * 接口结果（0-初始 1-成功 4-失败）
     */
    @Excel(name = "接口结果", readConverterExp = "0=-初始,1=-成功,4=-失败")
    private String status;

    /**
     * 失败原因
     */
    @Excel(name = "失败原因")
    private String message;
}
